package com.example.administrator.managesystem.network;
import android.content.Context;
import android.content.SharedPreferences;
import android.text.TextUtils;
import android.util.Log;


import com.example.administrator.managesystem.utils.AndroidUtils;
import com.example.administrator.managesystem.utils.Sha1;

import java.util.Map;
import java.util.Random;
import java.util.WeakHashMap;

import static com.example.administrator.managesystem.utils.GlobalConfig.APPID;
import static com.example.administrator.managesystem.utils.GlobalConfig.APPSECRET;



/**
 * Created by TR-AND2 on 2017/12/5.
 */
public class ServiceManager extends RetrofitHelper {

    private static ServiceManager INSTANCE;

    public void setToken(String token) {
        this.token = token;
    }

    private String token;

    public ServiceManager(Context context) {
        super(context);
    }


    public static ServiceManager getInstance(Context context) {
        if (INSTANCE == null) {
            if (INSTANCE == null) {
                synchronized (ServiceManager.class) {
                    if (INSTANCE == null) {
                        INSTANCE = new ServiceManager(context);
                    }
                }
            }
        }
        return INSTANCE;
    }


}
